package start;

import org.apache.mina.core.service.IoHandlerAdapter;
import org.apache.mina.core.session.IoSession;

public class ClientIoHandler extends IoHandlerAdapter
{

	public void exceptionCaught(IoSession session, Throwable cause)
			throws Exception {
		cause.printStackTrace();
	}

	public void messageReceived(IoSession session, Object message)
			throws Exception {
		System.err.println("ClientIoHandler messageReceived");
	}

	public void messageSent(IoSession session, Object message) throws Exception {
//		System.err.println("ClientIoHandler messageSent");
	}

	public void sessionClosed(IoSession session) throws Exception {
		super.sessionClosed(session);
	}

	public void sessionOpened(IoSession session) throws Exception {

	}
	
}
